﻿#include "mainwindow.h"
#include <QApplication>
#include <QFile>
#include <QDebug>
#include <QIODevice>
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    QFile file(":/style/style.qss");
    if(file.open(QIODevice::ReadOnly | QIODevice::Text))
    {
        qDebug()<<"文件打开成功！";
        QString qss = QLatin1String(file.readAll());
        a.setStyleSheet(qss);
        file.close();
    }
    else
    {
        qDebug()<<"文件打开失败！";
        return 0;
    }


    MainWindow w;
    w.setWindowTitle("Album");
    w.showMaximized();
    return a.exec();
}
